home *** CD-ROM | disk | FTP | other *** search
/ Aminet 23 / Aminet 23 (1998)(GTI - Schatztruhe)[!][Feb 1998].iso / Aminet / dev / amos / AMOS1097.lzh / AMOSLIST / 000098_amos-request@svcs1.digex.net_Thu Oct 9 03:27:50 1997.msg < prev    next >
Internet Message Format  |  1997-11-02  |  5KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail2.access.digex.net (8.8.5/8.8.5) with ESMTP id DAA04699
  3.     for <mcox@access.digex.net>; Thu, 9 Oct 1997 03:27:47 -0400 (EDT)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id BAA14434
  6.     for amos-out; Thu, 9 Oct 1997 01:13:01 -0400 (EDT)
  7. Received: from mail2.access.digex.net (mail2.access.digex.net [205.197.247.3])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id BAA14431
  9.     for <amos-list@svcs1.digex.net>; Thu, 9 Oct 1997 01:13:01 -0400 (EDT)
  10. Received: from mail.redrose.net (mail.redrose.net [204.249.184.22])
  11.     by mail2.access.digex.net (8.8.5/8.8.5) with SMTP id BAA16392
  12.     for <amos-list@access.digex.net>; Thu, 9 Oct 1997 01:13:00 -0400 (EDT)
  13. Received: (qmail 29273 invoked from network); 9 Oct 1997 05:13:47 -0000
  14. Received: from herp1-42.redrose.net (HELO redrose.net) (mushy-pd@208.7.248.170)
  15.   by mail.redrose.net with SMTP; 9 Oct 1997 05:13:47 -0000
  16. From: Mush <mushypd@redrose.net>
  17. Reply-To: mushypd@redrose.net
  18. To: amos-list@access.digex.net
  19. Date: Thu, 09 Oct 1997 00:41:22 +0500
  20. Message-ID: <yam7221.1145.3862960@mail.redrose.net>
  21. In-Reply-To: <yam7220.1778.3423568@post.demon.co.uk>
  22. X-Mailer: YAM 1.3.4 [020] - Amiga Mailer by Marcel Beck
  23. Organization: Mushroom PD - AMOS Public Domain Library
  24. Subject: Re: CD32 Pads
  25. MIME-Version: 1.0
  26. Content-Type: text/plain; charset=iso-8859-1
  27. Content-Transfer-Encoding: 8bit
  28. X-MIME-Autoconverted: from quoted-printable to 8bit by svcs1.digex.net id BAA14432
  29. Status: O
  30. X-Status: 
  31.  
  32.  
  33. The man most directly responsible for this twaddle was Andy Gibson, who did
  34. thus comment on CD32 Pads on the night of 08-Oct-97:
  35.  
  36. -> Why  not  make  use  of the CD�� Joypad routine? I think MUSH may have
  37. -> this lying around, if not I do and it works 100%.
  38.  
  39. Yup, i have it, and here it is. You'll need LOWLEVEL.LIBRARY in your LIBS:
  40. drawer!!
  41.  
  42. '
  43. '    CD32 Joypad 
  44. '
  45. '    (c) K.Hill, Jan 1996
  46. '        
  47. '
  48. 'structures begin
  49. '
  50. 'Const JPF_BUTTON_FORWARD=$80000 
  51. 'Const JPF_LEFT  = 2 
  52. 'Const JPF_JOY_UP  = 8   
  53. 'Const JPF_BUTTON_REVERSE  =  $40000 
  54. 'Const JPF_DOWN  = 4   
  55. 'Const JPF_JOY_RIGHT  = 1    
  56. 'Const JPF_JOY_LEFT  = 2 
  57. 'Const JPF_BUTTON_GREEN  =  $100000  
  58. 'Const JPF_BUTTON_YELLOW  =  $200000 
  59. 'Const JPF_JOY_DOWN  = 4 
  60. 'Const JPF_BUTTON_BLUE  =  $800000 
  61. 'Const JPF_UP  = 8 
  62. 'Const JPF_BUTTON_PLAY  =  $20000  
  63. 'Const JPF_BTN1  =  $800000  
  64. 'Const JPF_BTN2  =  $400000  
  65. 'Const JPF_BTN3  =  $200000  
  66. 'Const JPF_BTN4  =  $100000  
  67. 'Const JPF_BTN5  =  $80000 
  68. 'Const JPF_RIGHT  = 1  
  69. 'Const JPF_BTN6  =  $40000 
  70. 'Const JPF_BTN7  =  $20000 
  71. 'Const JPF_BUTTON_RED  =  $400000  
  72. '
  73. 'Structures Constants
  74.  
  75. Global __JPF_BUTTON_FORWARD,__JPF_LEFT,__JPF_JOY_UP
  76. __JPF_BUTTON_FORWARD=524288 : __JPF_LEFT=2 : __JPF_JOY_UP=8
  77. Global __JPF_BUTTON_REVERSE,__JPF_DOWN,__JPF_JOY_RIGHT
  78. __JPF_BUTTON_REVERSE=262144 : __JPF_DOWN=4 : __JPF_JOY_RIGHT=1
  79. Global __JPF_JOY_LEFT,__JPF_BUTTON_GREEN,__JPF_BUTTON_YELLOW
  80. __JPF_JOY_LEFT=2 : __JPF_BUTTON_GREEN=1048576 : __JPF_BUTTON_YELLOW=2097152
  81. Global __JPF_JOY_DOWN,__JPF_BUTTON_BLUE,__JPF_UP
  82. __JPF_JOY_DOWN=4 : __JPF_BUTTON_BLUE=8388608 : __JPF_UP=8
  83. Global __JPF_BUTTON_PLAY,__JPF_BTN1,__JPF_BTN2
  84. __JPF_BUTTON_PLAY=131072 : __JPF_BTN1=8388608 : __JPF_BTN2=4194304
  85. Global __JPF_BTN3,__JPF_BTN4,__JPF_BTN5,__JPF_RIGHT
  86. __JPF_BTN3=2097152 : __JPF_BTN4=1048576 : __JPF_BTN5=524288 : __JPF_RIGHT=1
  87. Global __JPF_BTN6,__JPF_BTN7,__JPF_BUTTON_RED
  88. __JPF_BTN6=262144 : __JPF_BTN7=131072 : __JPF_BUTTON_RED=4194304
  89.  
  90. 'structures end
  91. Lib Open 1,"lowlevel.library",40
  92.  
  93. Dreg(0)=1
  94. While 1
  95.    Z=Lib Call(1,-30)
  96.    If Z and __JPF_BUTTON_BLUE Then Print "Blue"
  97.    If Z and __JPF_BUTTON_RED Then Print "Red"
  98.    If Z and __JPF_BUTTON_GREEN Then Print "Green"
  99.    If Z and __JPF_BUTTON_YELLOW Then Print "Yellow"
  100.    If Z and __JPF_BUTTON_PLAY Then Print "Play"
  101.    If Z and __JPF_BUTTON_FORWARD Then Print "FF"
  102.    If Z and __JPF_BUTTON_REVERSE Then Print "Rew"
  103.    If Z and __JPF_JOY_DOWN Then Print "Down"
  104.    If Z and __JPF_JOY_UP Then Print "Up"
  105.    If Z and __JPF_JOY_LEFT Then Print "Left"
  106.    If Z and __JPF_JOY_RIGHT Then Print "Right"
  107. Wend 
  108.  
  109.  
  110. Andrew "Mushroom" Kellett
  111. --
  112.  Email: Andy Kellett <mushypd@redrose.net>  Team *AMOS* + IAPA Team *AMIGA*
  113.   alt.religion.amos - AMOS now on usenet! AMOS Mailinglist also mirrored
  114.  
  115.      World's Largest AMOS Homepages - http://www.mushy-pd.demon.co.uk
  116.  
  117.          Massive FTP site with AMOS/C64 and Mods/Samples + more at
  118.                             mushy-pd.dyn.ml.org
  119.